

<script setup>
// Vue2,vue3混用页
// 个人信息页面
//个人信息的修改打算直接重复调用一下注册页，直接修改

import { debounce } from "lodash";
import { ref, VueElement } from "vue";
import store from "../../store";
var orgclick = function () {
  alert("请联系开发者QQ1503490056");
}
store.getStu()
var usermsg=JSON.parse(window.localStorage.getItem("getmsg"))
</script>

<script>
export default {
  data() {
    return {
      IStouch: "endtouch"
    };
  },
  methods: {
    starttouch() {
      this.IStouch = "starttouch";
    },
    endtouch() {
      this.IStouch = "endtouch";
    }
  }
};
var goBack = function() {
  window.location.replace("../Home/Home.html");
  // window.history.back();
};
</script>



<template>
  <div class="main">
    <div class="grxx">资料卡</div>
    <div class="back" @click="goBack()">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-xiangzuo1-copy" />
        </svg>
      </div>
    <div class="touxiang">
      <img :src="usermsg.profile" alt />
      <div class="nicheng nicheng_1">{{ usermsg.nick }}</div>
    </div>
        <div class="div1" style="top:64px"></div>
    <div class="nick xuehao">
      学号
      <div class="nicheng">{{ usermsg.schNo[0] }}{{ usermsg.schNo[1] }}{{ usermsg.schNo[2] }}***{{ usermsg.schNo[6] }}{{ usermsg.schNo[7] }}{{ usermsg.schNo[8] }}{{ usermsg.schNo[9] }}</div>
    </div>
    <div class="div1" style="top:114px"></div>
    <div class="nick">
      性别
      <div class="nicheng">{{ usermsg.gender }}</div>
    </div>
    <div class="div1" style="top:163px"></div>
    <div class="nick">
      书院
      <div class="nicheng">{{ usermsg.insit }}</div>
    </div>
    <div class="div1" style="top:213px"></div>
    <div class="div1" style="top:263px"></div>
    <div class="nick">
      QQ
      <div class="nicheng">{{ usermsg.qqNo }}</div>
    </div>
    <div class="div1" style="top:313px"></div>
    <div class="nick">
      微信号
      <div class="nicheng">{{ usermsg.wechatNo }}</div>
    </div>
    <div class="div1" style="top: 367px;"></div>
    <div class="nick selfintro">
      个人简介
    <div class="grjjk">{{usermsg.selfIntro}}</div>
    </div>
  </div>
</template>

<style scoped>
* {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: black;
}

.main {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #f2f2f2;
  width: 100%;
  height: 100%;
}

.jieshao {
  display: inline-block;
  width: 200px;
  text-align: right;
  /* background-color: pink; */
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.grxx {
  /* display: block; */
  /* background-color: gray; */
  width: 100%;
  /* position: absolute; */
  font-size: 20px;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  color: rgb(79, 79, 79);
}

.touxiang {
  position: relative;
  width: 100%;
  height: 90px;
  background-color: #fff;
  line-height: 90px;
  padding-left: 15px;
}

.touxiang>img {
  display: block;
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  left: 20px;
  top: calc(50% - 30px);
  box-shadow: 0 0 2px gray;
}

.div1 {
  width: 92.4%;
  height: 0;
  border-bottom: 1px solid #f2f2f2;
  margin-left: calc(50% - 180px);
  position: relative;
  z-index: 999;
}

.nick {
  background-color: #fff;
  float: left;
  margin-top: -1px;
  height: 51px;
  padding-top: 1px;
  width: 100%;
  position: relative;
  line-height: 51px;
  padding-left: 30px;
}

.nicheng {
  position: absolute;
  color: rgb(79, 79, 79);
  font-size: 13px;
  top: 2px;
  right: 52px;
}

.nicheng_1 {
  color: black;
  font-size: 20px;
  font-weight: bold;
  right: 47px;
}

.xuehao {
  margin-top: 10px;
}

.selfintro{
  margin-top: 15px;
  height: 500px;
  line-height: 20px;
  padding-top: 10px;
  padding-bottom: 50px;
}

.grjjk{
  color: rgb(79, 79, 79);
  font-size: 14px;
  margin-top: 15px;
  width: 340px;
  padding-bottom: 20px;
}
.mima {
  margin-top: 10px;
  height: 56px;
}
.line{
  position: absolute;
  width: 360px;
  height: 2px;
  color: black;
  top: 200px;
  right: 20px;
  z-index: 100;
}

.zhuantiao {
  position: absolute;
  width: 20px;
  height: 20px;
  right: 34px;
  top: 3px;
  font-size: 20px;
}

.back {
  position: absolute;
  line-height: 45px;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 9999;
  top: 0;
}

.starttouch {
  background-color: #f2f2f2;
}

.xiugai {
  height: 53px;
  vertical-align: middle;
  margin-top: 20px;
}
</style>